home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / FileSaveDialog.au3 < prev    next >
Text File  |  2006-06-17  |  614b  |  21 lines

  1. $MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
  2.  
  3. $var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)", 2)
  4. ; option 2 = dialog remains until valid path/file selected
  5.  
  6. If @error Then
  7.     MsgBox(4096,"","Save cancelled.")
  8. Else
  9.     MsgBox(4096,"","You chose " & $var)
  10. EndIf
  11.  
  12.  
  13. ; Multiple filter group
  14. $var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)|Text files (*.ini;*.txt)", 2)
  15. ; option 2 = dialog remains until valid path/file selected
  16.  
  17. If @error Then
  18.     MsgBox(4096,"","Save cancelled.")
  19. Else
  20.     MsgBox(4096,"","You chose " & $var)
  21. EndIf